package com.ht.modules.weather.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

@Data
public class WeatherInfo  implements java.io.Serializable{
    /**
     * 湿度
     */
    private String shidu;
    /**
     * pm2.5
     */
    private java.math.BigDecimal pm25;
    /**
     * pm10
     */
    private java.math.BigDecimal pm10;
    /**
     * 空气质量
     */
    private String quality;
    /**
     * 温度
     */
    private java.math.BigDecimal wendu;
    /**
     * 感冒提醒（指数）
     */
    private String ganmao;
    /**
     * 城市ID
     */
    private String cityId;
    /**
     * 日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private java.util.Date dateTime;
    @TableField(exist = false)
    private WeatherDetails yesterday;
    @TableField(exist = false)
    private List<WeatherDetails> forecast;
}
